Pod::Spec.new do |s|
  s.name         = "Commom"
  s.version      = "0.0.3"
  s.summary      = "Commom bage"
  s.description  = "test"
  s.homepage     = "http://EXAMPLE/Commom"
  s.license      = "MIT"
  s.author       = { "山刘" => "liushan@segimail.com" }
  s.source       = { :git => "https://gitee.com/samcoding/Commom.git", :tag => "#{s.version}" }
  # s.source       = { :path => "/Users/shanliu/Desktop/MediatorCreate/Common/trunk/Commom.podspec", :tag => "#{s.version}" }
  s.static_framework  =  true
  s.requires_arc = true
  s.platform     = :ios, "8.0"
  s.source_files  = "Commom/Class/**/*"
  s.public_header_files = "Commom/Class/**/*.h"

  # 中介跳转组件
  s.subspec 'SEGMediator' do|a|
    a.source_files  = "Commom/Class/SEGMediator/**/*"
    a.public_header_files = "Commom/Class/SEGMediator/**/*.h"
  end

  # # 平台组件
  # s.subspec 'SEGPlatform' do|platform|
  #   platform.source_files  = "Commom/Class/SEGPlatform/**/*"
  #   platform.public_header_files = "Commom/Class/SEGPlatform/**/*.h"
  # end   

  # # 服务器相关配置
  # s.subspec 'SEGServerManager' do|server|
  #   server.source_files  = "Commom/Class/SEGServerManager/**/*"
  #   server.public_header_files = "Commom/Class/SEGServerManager/**/*.h"
  #   server.dependency "Commom/SEGPlatform"
  # end

  # # 接口请求&模型组件
  # s.subspec 'SEGInterfaceManager' do|interface|
  #   interface.source_files  = "Commom/Class/SEGInterfaceManager/**/*"
  #   interface.public_header_files = "Commom/Class/SEGInterfaceManager/**/*.h"
  #   interface.dependency "Commom/SEGServerManager"
  #   interface.dependency "Commom/SEGTools/SEGModel"
  # end

  # # 颜色组件
  # s.subspec 'SEGColor' do|color|
  #   color.source_files  = "Commom/Class/SEGColor/**/*"
  #   color.public_header_files = "Commom/Class/SEGColor/**/*.h"
  #   color.dependency "Commom/SEGPlatform"
  # end

  # 颜色组件
  s.subspec 'SEGWeb' do|web|
    web.source_files  = "Commom/Class/SEGWeb/**/*"
    web.dependency "Commom/SEGMediator"
    #web.private_header_files  = "Commom/Class/SEGWeb/**/*.h"
  end  

  # # 工具总组件
  # s.subspec 'SEGTools'do|tool|
  #   tool.source_files  = "Commom/Class/SEGTools/**/*"
  #   tool.public_header_files = "Commom/Class/SEGTools/**/*.h"

  #   # 工具- 模型、json操作
  #   tool.subspec 'SEGModel'do|tool_m|   
  #     tool_m.source_files  = "Commom/Class/SEGTools/SEGModel/**/*"
  #     tool_m.public_header_files = "Commom/Class/SEGTools/SEGModel/**/*.h" 
  #   end  

  #   # 工具- 切片
  #   tool.subspec 'SEGAspect'do|tool_as|   
  #     tool_as.source_files  = "Commom/Class/SEGTools/SEGAspect/**/*"
  #     tool_as.public_header_files = "Commom/Class/SEGTools/SEGAspect/**/*.h" 
  #   end

  #   # 工具-钥匙串
  #   tool.subspec 'SEGCKeyChainStore'do|tool_kcs|   
  #     tool_kcs.source_files  = "Commom/Class/SEGTools/SEGCKeyChainStore/**/*"
  #     tool_kcs.public_header_files = "Commom/Class/SEGTools/SEGCKeyChainStore/**/*.h" 
  #   end
  # end

end



# pod package Commom.podspec --force --embedded --no-mangle --subspecs='SEGInterfaceManager' --spec-sources='https://gitee.com/samcoding/SMSpecs.git,https://github.com/CocoaPods/Specs'
# cd /Users/shanliu/Desktop/MediatorCreate/Common/trunk/
# pod lib lint --allow-warnings --verbose
# pod repo push SMSpecs Commom.podspec --allow-warnings